package autoload

import (
	"blog/core"
	"blog/core/redis"
)

type Redis struct {
}

func (rev *Redis) Init() {
	core.Redis = redis.PoolStart(redis.PoolConfig.SetHost(core.Config.Redis.Host), redis.PoolConfig.SetPassword(core.Config.Redis.Auth))
	core.Redis.GetPing().Ping()
}
